﻿
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InnerTask.aspx.cs" Inherits="web.admin.scTask.list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../js/function.js" type="text/javascript"></script>
    <script src="../js/ajax.js" type="text/javascript"></script>
    
</head>
<body>
    <form id="form1" runat="server">
   <div class="top_div">
        <div class="top_div_left" >
                <table>
                    <tr >
                        <td ><img alt="" src="../images/main_hl.gif" /></td>
                        <td ><img alt="" src="../images/main_hl2.gif" /></td>
                        <td class="topNav"><span>校级任务列表</span></td>
                        <td><img alt="" src="../images/main_hr.gif" /></td>
                    </tr>
                </table>
        </div>
    </div>
    <div class="middle_div">
        <div class="middle_left"></div>
        <div class="middle_middle">
            <div class="navigation"><span>首页&gt;校内竞赛任务&gt;校级任务列表</span></div>
            <div class="tools_box">
                <div class="tools_bar">
                    <a href="AddInnerTask.aspx" class="tools_btn"><span><b class="add">添加校级竞赛任务</b></span></a>
                    <a href="#"  class="tools_btn" onclick="checkAll(this);"><span><b class="checkAll">全选</b></span></a>
                    <asp:LinkButton runat="server" Onclick="BatchDelete" OnClientClick="return confirm( '确定要删除这些记录吗？ ');" 
                    CssClass="tools_btn" ID="btn_Delete"><span><b class="delete">批量删除</b></span></asp:LinkButton>
                </div>
            </div>
            <div class="chooseClass">
                <span>选择竞赛：</span>
                <asp:DropDownList ID="CompetitionsList"  runat="server" AutoPostBack="true" 
                    AppendDataBoundItems="True" 
                    onselectedindexchanged="CompetitionList_SelectedIndexChanged" >
                    <asp:ListItem Value="">全部竞赛</asp:ListItem>
                </asp:DropDownList>
                <br />
            </div>
            <div class="content_table">
                <table class="msgtable">
                    <asp:Repeater ID="Repeater1" runat="server">
                        <HeaderTemplate>
                            <tr>
                                <th>选择</th>
                                <th>编号</th>
                                <th>竞赛任务名称</th>
                                <th>所属竞赛项目</th>
                                <th>任务创建人</th>
                                <th>竞赛开始时间</th>
                                <th>竞赛结束时间</th>
                                <th>竞赛地点</th>
                                <th>指导教师</th>
                                <th>操作</th>
                            </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td><asp:CheckBox ID="CbChoose" CssClass="checkBox" runat="server" />
                                <asp:HiddenField ID="Hf_id" runat="server" Value='<%#Eval("CON_ID") %>' /></td> 
                                <td><%# Container.ItemIndex+1 %></td>
                                <td><%# DataBinder.Eval(Container.DataItem,"CON_NAME") %></td>
                                <td><%# DataBinder.Eval(Container.DataItem, "CON_COMPETITIONS")%></td>
                                <td><%# DataBinder.Eval(Container.DataItem, "CON_CREATOR")%></td>
                                <td><%# DataBinder.Eval(Container.DataItem, "CON_STARTTIME")%></td>
                                <td><%# DataBinder.Eval(Container.DataItem, "CON_ENDTIME")%></td>
                                <td><%# DataBinder.Eval(Container.DataItem, "CON_ADDRESS")%></td>
                                <td><%# DataBinder.Eval(Container.DataItem, "CON_TEACHERS")%></td>
                                <td>
                                <a href='AddInnerTask.aspx?OPERATION=Modify&CON_ID=<%# Eval("CON_ID") %>'>修改</a>|
                                <a href='AddInnerTask.aspx?OPERATION=Delete&CON_ID=<%# Eval("CON_ID") %>'>删除</a>
                                </td>
                              
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
            </div>
            <div class="div_page">
                <div class="div_page_size">
                    <span>每页显示</span>
                    <asp:TextBox ID="tb_size" runat="server" AutoPostBack="true" Width="40"></asp:TextBox>
                    <span>条</span>
                </div>
                <div class="div_page_Num">
                    <div class="div_a">
                        <label runat="server" id="lb_pageNum">
                        </label>
                    </div>
                </div>
            </div>
            
        </div>
        <div class="middle_right"></div>
    </div>
    
    
    </form>
</body>
</html>
